<include file='Common:head'/>
<div class="order_status1">
	<div class="timeout fl mod">超时订单({$orderNum.before})</div>
	<div class="today fl mod">今日订单({$orderNum.today})</div>
	<div class="book fl mod">预约订单({$orderNum.after})</div>
	<div class="cl"></div>
</div>

<div class="box2">
<foreach name="list" item="vo" >
<div onclick="window.location.href = '{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/server_order_info',array('ordersn'=>$vo['ordersn']))}'">
	<div class="order_info">
		<div class="info_left fl">
			<div>洗車時間：<if condition="$vo.finish_time neq null"><br/>{$vo['book_time']|date="Y-m-d H:i:s",###}-{$vo['finish_time']|date="Y-m-d H:i:s",###}<elseif condition="$vo.finish_time eq null and $vo.wash_status eq 0"/>尚未安排<elseif condition="$vo.finish_time eq null and $vo.wash_status eq 1"/>清洗中</if></div>
			<div style="color:red;">洗車類型：<if condition="$vo.card_type eq 1">次卡<elseif condition="$vo.card_type eq 2"/>周卡<elseif condition="$vo.card_type eq 3"/>月卡<elseif condition="$vo.card_type eq 4"/>年卡</if></div>
			<div>車型：{$vo.type}</div>
			<div>日期：{$vo.create_time|date="Y-m-d",###}</div>
			<div>車牌：{$vo.license_plate}</div>
			<div>電話：13785000564</div>
		</div>
		<div class="info_right fr">
			<img src="__PRIVATE__/images/right.png"/>
		</div>
		<div class="cl"></div>
	</div>
	<if condition="$vo.wash_status eq 1">
	<div class="order_bottom_blue">清洗中</div>
	<elseif condition="$vo.wash_status eq 2 and $vo.is_select eq 2"/>
	<div class="order_bottom_green">清洗完成</div>
	<elseif condition="$vo.wash_status eq 0 and $vo.is_select eq 0 "/>
	<div class="order_bottom_readlly">尚未安排</div>
	</if>
</div>
</foreach>
</div>
<script type="text/javascript">
$(document).ready(function(){
	<if condition="$_GET['type'] eq 'timeout'">
		$('title').html('超時訂單');
		$('.header .title').html('超時訂單');
		$('.order_status1 .timeout').addClass('blue_buttom');
	<elseif condition="$_GET['type'] eq 'today'"/>
		$('title').html('今日訂單');
		$('.header .title').html('今日訂單');
		$('.order_status1 .today').addClass('blue_buttom');
	<elseif condition="$_GET['type'] eq 'book'"/>
		$('title').html('今日訂單');
		$('.header .title').html('今日訂單');
		$('.order_status1 .book').addClass('blue_buttom');
	<else/>
		$('title').html('今日訂單');
		$('.header .title').html('今日訂單');
		$('.order_status1 .today').addClass('blue_buttom');
	</if>
	
	$('.order_status1 .timeout').click(function(){
		window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/server_order_list',array('type'=>'timeout'))}";
	});
	$('.order_status1 .today').click(function(){
		window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/server_order_list',array('type'=>'today'))}";
	});
	$('.order_status1 .book').click(function(){
		window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/server_order_list',array('type'=>'book'))}";
	});
	
	$('.header .right').html('');
});
</script>
<include file='Common:footer_3'/>